package com.tpc.yaoxpt.schedule;


import com.tpc.yaoxpt.service.GoodsService;
import javafx.concurrent.ScheduledService;
import javafx.concurrent.Task;

public class GoodsScheduleService extends ScheduledService<Void> {
    @Override
    protected Task<Void> createTask() {
        return new Task<>() {
            GoodsService goodsService = new GoodsService();
            @Override
            protected Void call() {
                goodsService.getGoodsInfo();
                return null;
            }
        };
    }
}
